<?php
require_once('../inc/classes/safemysql.class.php');

// Проверки и подключение Конфигурации
if(is_file('../config.db')) { 
    include_once '../config.db'; 
    if(!isset($lng)) { 
        $lng="ru"; 
    }    
} else {
    $mysql_host="localhost";	
    $mysql_user="udbo";
    $mysql_pass="";
    $mysql_base="udbo";    
    $theme     ="default"; 
    $lng       ="ru";
    $version   ="00.00.00.01";
}
//
require_once '../lang/'.$lng.'.db';

$SMySQL = new SafeMySQL(array('host' => $mysql_host,'user' => $mysql_user, 'pass' => $mysql_pass,'db' => $mysql_base));


$query_sql = file_get_contents('SQL\_config.sql');
$result = $SMySQL->query($query_sql,"_config");
if($result == 0) {
    die('ERROR');    
} else {
    echo "Good Table - OK";    
}
?>
